include("shared.lua")
include("cl_maingui.lua")
include("cl_listbt.lua")


CommUpgrade.MainGUI = nil
CommUpgrade.SubGUI = nil

function CommUpgrade:Open()
	
	if !self.MainGUI then
		self.MainGUI = vgui.Create("DFrame")
		
		self.MainGUI:ShowCloseButton( true )
		self.MainGUI:SetDeleteOnClose( false )
		self.MainGUI:SetBackgroundBlur( false )
	end
	
	if !CommUpgrade.SubGUI then	
		CommUpgrade.SubGUI = vgui.Create("UpgradesMenu", self.MainGUI )
	end
	
	self.MainGUI:SetSize( ScrW() * 0.75, ScrH() * 0.75 )
	self.MainGUI:Center()
	
end

function CommUpgrade:AddMenu( tbl )

	if CommUpgrade.SubGUI then
		CommUpgrade.SubGUI:AddCategory( tbl )
	end
	
end

function CommUpgrade:AddUpgrades()

end